package com.service.admin.member.controller;

import com.service.admin.member.controller.rep.StoreCountPageRep;
import com.service.admin.member.controller.req.StoreCountPageReq;
import com.service.admin.member.service.MemberJAService;
import com.service.admin.member.service.MemberService;
import com.service.admin.member.service.MemberStoreService;
import com.service.core.rest.BaseController;
import com.service.core.rest.response.PageResponse;
import com.service.dao.po.MemberJAPo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@Api(tags = "会员流水统计")
@RestController
@RequestMapping("member-store-count")
public class MemberStoreCountController extends BaseController {
	@Autowired
	private MemberJAService memberJAService;

	@Autowired
	private MemberService memberService;

	@Autowired
	private MemberStoreService memberStoreService;

	@ApiOperation("分页")
	@PostMapping("page")
	public PageResponse<StoreCountPageRep> page(@ApiParam @RequestBody StoreCountPageReq pageReq){
		return successQueryPageResponse(memberStoreService.pageMemberCount(pageReq));
	}
}
